﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CarAppDomain.CarType.Entities;
using CarAppDto.CarParts.CarPartsDtos;
using CarAppDto.CarType.AreaDtos;
using CarAppDto.CarType.CarDtos;
using CarAppDto.CarType.CarTypeDtos;
using D.UtilCore.Dtos;
using D.UtilSqlsugarOrm;

namespace CarAppDomain.CarType.IService
{
    public interface ICarTypeService : IBaseService<CarTypeEntity>
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="reqModel"></param>
        /// <returns></returns>
        Task<ApiResult<int>> AddCarTypeAsync(ReqAddCarType reqModel);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<ApiResult<int>> DeleteCarTypeAsync(List<string> ids);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="reqModel"></param>
        /// <returns></returns>
        Task<ApiResult<int>> UpdateCarTypeAsync(ReqUpdateCarType reqModel);

        /// <summary>
        /// 查询列表
        /// </summary>
        /// <param name="reqModel"></param>
        /// <returns></returns>
        Task<ApiResult<List<RepCarType>>> QueryCarTypeListAsync(ReqQueryCarTypeList reqModel);

        /// <summary>
        /// 分页查询
        /// </summary>
        /// <param name="reqQueryAdminPage"></param>
        /// <returns></returns>
        Task<ApiResult<PageModel<RepCarType>>> QueryCarTypePagesAsync(ReqQueryCarTypePage reqQueryPage);

        /// <summary>
        /// 查询单个
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<ApiResult<RepCarType>> GetCarTypeAsync(string id);

        /// <summary>
        /// 获取车型的全部配件
        /// </summary>
        /// <param name="carTypeId"></param>
        /// <returns></returns>
        Task<ApiResult<List<RepCarParts>>> GetCarPartsByCarTypeIdAsync(string carTypeId);
    }
}
